#ifndef EDGEDETECTION_H
#define EDGEDETECTION_H

#include "LFOSCommon.h"

#define THRESHOLD 5

//#define H_0_0 -1
//#define H_0_1 -1
//#define H_0_2 -1
//#define H_1_0 -1
//#define H_1_1 8
//#define H_1_2 -1
//#define H_2_0 -1
//#define H_2_1 -1
//#define H_2_2 -1
#define GX_0_0 1
#define GX_0_1 0
#define GX_0_2 -1
#define GX_1_0 2
#define GX_1_1 0
#define GX_1_2 -2
#define GX_2_0 1
#define GX_2_1 0
#define GX_2_2 -1

#define GY_0_0 1
#define GY_0_1 2
#define GY_0_2 1
#define GY_1_0 0
#define GY_1_1 0
#define GY_1_2 0
#define GY_2_0 -1
#define GY_2_1 -2
#define GY_2_2 -1

//#define GAUSS_0_0 21
//#define GAUSS_0_1 31
//#define GAUSS_0_2 21
//#define GAUSS_1_0 31
//#define GAUSS_1_1 48
//#define GAUSS_1_2 31
//#define GAUSS_2_0 21
//#define GAUSS_2_1 31
//#define GAUSS_2_2 21
//#define GAUSS_COEFF 128


class EdgeDetection
{
public:
	EdgeDetection();
	bool* ProcessEdges(unsigned char* frame, Point* edgePoint, int& numPoints);

private:
	bool edgeFrame[PIXELS];
};

#endif
